:root {
  --bg: #303033;
  --surface: #303033;
  --text: #e6e6e6;
  --muted: #b8b8b8;
  --accent: #e1dfdb;
  --border: rgba(255, 255, 255, 0.12);
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  margin: 0;
  padding: 0;

  background: var(--bg);
  color: var(--text);
  font-family: "Merriweather", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  line-height: 1.6;
}
a {
  color: var(--accent);
  text-decoration: none;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  color: #303033;
  background: var(--accent);
  border: 2px solid transparent;
  font-weight: 700;
  transition: 0.2s ease;
  font-size: 1.23rem;
}
.btn:hover {
  transform: translateY(-1px);
  background: transparent;
  color: var(--text);
  border-color: var(--accent);
}
.highlight {
  font-weight: bold; /* makes it bold */
  font-size: 1.4rem; /* makes it slightly larger than surrounding text */
  /* optional: color */
  color: #e6e6e6;
}

/* Header */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(30, 30, 33, 0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  font-size: 1.2rem;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.2rem;
}
.brand img {
  width: 70px;
  height: 70px;
  object-fit: contain;
}
.menu {
  display: flex;
  gap: 1rem;
}
.menu a {
  padding: 0.4rem 0.7rem;
  border-radius: 0.5rem;
}
.menu a:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* Hero */
.hero {
  padding: 3.25rem 0 2rem;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.8rem, 3vw + 1.5rem, 4.5rem);
  margin: 0 0 0.75rem;
}
.hero p {
  /* margin: 0 1rem; */
  color: var(--muted);
  font-size: clamp(1.1rem, 0.6vw + 1.05rem, 1.8rem);
  margin-bottom: 3rem;
}
.hero__img {
  text-align: center;
}
.hero__img img {
  width: 400px;
  height: auto;
  max-width: 450px;
  max-height: 580px;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}
.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero__actions .btn {
  padding: 0.75rem 3.7rem;
}
/* About Me Page */
.hero-about p {
  font-size: 1.4rem;
}
.hero-about img {
  width: 350px;
  height: auto;
}
.aboutme p {
  margin-bottom: 1.3rem;
}

/* Section heading */
.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 2rem 0 1rem;
}
.section__head h2 {
  margin: 0;
  font-size: 3rem;
}
.muted {
  color: var(--muted);
  font-size: 1.3rem;
  margin-right: 0.8rem;
}

/* Projects grid */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.card__body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.card h3 {
  margin: 0;
  font-size: 1.4rem;
}
.card p {
  margin: 0;
  color: var(--muted);
}
.card__footer {
  padding: 1rem;
  padding-top: 0;
}

/* Project detail blocks */
.project {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 3rem;
  align-items: start;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.project + .project {
  margin-top: 1.25rem;
}
.project figure {
  margin: 0;
}
.project img {
  width: 355px;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--border);
}

/* Home Featured Section*/
.flexactions {
  display: flex;
  gap: 2rem;
}

/* Featured Project Section */

.Featured-project h1 {
  font-size: 4rem;
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 1.5rem;
}
.featured-project-intro {
  display: flex;
  align-items: start;
  gap: 5rem;
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: 12px;
  margin: 1.5rem 18rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.featured-project-intro img {
  border-radius: 12px;
  width: 450px;
  height: 325px;
}

.featured-project-intro-body h1 {
  font-size: 3rem;
  align-items: start;
  margin-bottom: 0.5rem;
}
.featured-project-intro-body p {
  margin-right: 2.5rem;
  margin-bottom: 1.2rem;
  font-size: 1.2rem;
}
/* Overview  Section */

.featured-project-overview {
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: 12px;
  margin: 1.5rem 18rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.featured-project-overview-text {
  line-height: 2.8rem;
  font-size: 1.2rem;
}
.featured-project-overview-text h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* Summary Section */
.overview-content {
  display: flex;
  align-items: start;
  gap: 5rem;
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: 12px;
  margin: 0.5rem 18rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.overview-content img {
  border-radius: 12px;
  width: 470px;
  height: auto;
}
.overview-images {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.overview-text h1 {
  font-size: 3rem;
  margin-bottom: 0.75rem;
}

.overview-text p {
  margin-bottom: 1.2rem;
  font-size: 1.2rem;
  margin-right: 2rem;
}

/* Process Section */
.process-title {
  font-size: 2.3rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.process-analysis {
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: 12px;
  margin: 1.5rem 18rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.process-analysis-body {
  display: flex;
  align-items: start;
  gap: 5rem;
}
.process-analysis-body img {
  border-radius: 12px;
  width: 400px;
  height: auto;
}

.process-analysis-text {
  margin-left: 2rem;
  margin-right: 2.5rem;
}
.process-analysis-text h1 {
  margin-bottom: 1rem;
  font-size: 3rem;
}
.process-analysis-text p {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

/* Process Story-Board */
.process-storyboard {
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: 12px;
  margin: 1.5rem 18rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.process-storyboard-body {
  display: flex;
  align-items: start;
  gap: 4.5rem;
  flex-direction: row-reverse;
}
.process-storyboard-body img {
  border-radius: 12px;
  width: 470px;
  height: auto;
}

.process-storyboard-text h1 {
  margin-bottom: 1rem;
  font-size: 3rem;
}
.process-storyboard-text p {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

/* Mockup Section */
.mockup-content {
  display: flex;
  align-items: start;
  gap: 5rem;
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: 12px;
  margin: 1.5rem 18rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.mockup-content img {
  border-radius: 12px;
  width: 500px;
  height: auto;
}
.mockup-images {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.mockup-text h1 {
  font-size: 3rem;
  margin-bottom: 0.75rem;
}

.mockup-text p {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  margin-right: 2rem;
}

/* Prototype */
.prototype-content {
  display: flex;
  align-items: start;
  gap: 4rem;
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: 12px;
  margin: 1.5rem 18rem;
  flex-direction: row-reverse;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.prototype-content img {
  border-radius: 12px;
  width: 540px;
  height: auto;
}
.prototype-images {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.prototype-text h1 {
  font-size: 3rem;
  margin-bottom: 0.75rem;
}

.prototype-text p {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  /* margin-right: 1rem; */
}

/* Full Development */

.featured-project-development {
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: 12px;
  margin: 1.5rem 18rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.featured-project-development-text {
  line-height: 2.5rem;
  font-size: 1.2rem;
}
.featured-project-development-text h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.featured-project-development-text p {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

/* Results */
.featured-project-results {
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: 12px;
  margin: 1.5rem 18rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.featured-project-results-text {
  line-height: 3rem;
  font-size: 1.1rem;
}
.featured-project-results-text h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.featured-project-results-text h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.featured-project-results-text p {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  margin-right: 1rem;
}
.featured-project-results-text ul {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  margin-left: 2.5rem;
  line-height: 2.5rem;
  margin-right: 1rem;
}

/* Portfolio Page */
.portfolio-grid .portfolio-item__title {
  font-size: 1.4rem;
}
.portfolio-item {
  font-size: 1.1rem;
}
.portfolio-item .actions {
  margin-top: 1rem;
  text-align: left;
  max-width: fit-content;
}
/* Contact-specific layout tweaks */
.project--contact {
  grid-template-columns: minmax(300px, 420px) 1fr;
  gap: 5rem;
}
.project--contact img {
  aspect-ratio: auto;
  height: auto;
  width: 500px;
  object-fit: cover;
  max-height: 500px;
  border: none;
}
.project--contact > div {
  align-self: stretch;
  display: flex;
  flex-direction: column;
}
.project--contact form {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project--contact .form-grid {
  display: grid;
  gap: 0.75rem;
  align-content: stretch;
}
.form-input,
.form-textarea {
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  width: 100%;
}
.form-textarea {
  resize: vertical;
  min-height: 220px;
}
.project--contact h3 {
  font-size: 1.25rem;
}
.project--contact {
  font-size: 0.95rem;
}
.project h3 {
  margin: 0 0 0.4rem;
  font-size: 2rem;
}
.project p {
  margin: 0 0 0.85rem;
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}
.project .tools {
  color: var(--muted);
  margin: 0.25rem 0 1rem;
}
.project .actions {
  display: flex;
  gap: 0.75rem;
}

/* Tags for tools/skills */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.25rem 0 1rem;
}
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(30, 30, 33, 0.8);
  color: var(--muted);
  font-size: 0.9rem;
}

/* Footer */
.footer {
  margin-top: 3rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
}
.footer-logo {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-logo img {
  max-width: 100px;
}
/* Portfolio grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.portfolio-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.portfolio-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  flex-shrink: 0;
}
.portfolio-item__body {
  padding: 1rem;
}
.portfolio-item__title {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}
.portfolio-item__desc {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 900px) {
  .portfolio-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
  .grid {
    grid-template-columns: 1fr 1fr;
  }
  .project {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .portfolio-item {
    flex-direction: column;
    text-align: center;
  }
  .portfolio-item img {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    order: 2;
  }
}
